<?php require_once 'common/adminHeader.php';?>

<div class="nav">
当前位置：夏冬令营>><a href="<?php echo siteUrl('grade/campgradelist')?>">年级列表</a>
</div>
<?php  
	$userGrand = AdminVisitor::getAdminGrant();
?>
<?php if(isset($userGrand['manage'])):?>
<div class="addGrade">
<a  href="<?php echo siteUrl('grade/campgradeadd')?>">添加年级</a>
</div>
<?php endif;?>
<br>
	
<?php if ($form_data->summerGrade):?>
	
	<span class="font1">夏令营年级列表</span>
	
	<table  class="tableClass"  width="100%"  border="0" cellpadding="0" cellspacing="1">
	<tr>
			<td width="100">年级</td>
			<td width="100">一期限定</td>
			<td width="120">一期已经注册人数</td>
			<td width="100">二期限定</td>
			<td width="120">二期已经注册人数</td>
			<td width="100">排序</td>
			<td>编辑</td>
	</tr>
<?php foreach ($form_data->summerGrade as $key=>$value):?>
	<tr>
		<td><?php echo $value['GradeName'];?></td>
		<td><?php echo $value['FirstNumber'];?></td>
		<td><?php echo $value['FirstRegistedNumber'];?></td>
		<td><?php echo $value['SecondNumber'];?></td>
		<td><?php echo $value['SecondRegisterdNumber'];?></td>
		<td><?php echo $value['Sort'];?></td>
		<td>
		<a href ="<?php echo siteUrl('camp/gradeedit?gradeId='.$value['GradeId'])?>">修改</a>
		<?php if($form_data->isHaveDelGrant):?>
		<a href ="<?php echo siteUrl('camp/gradedel?gradeId='.$value['GradeId'])?>"> 删除</a>
		<?php endif;?>
		<a href ="<?php echo siteUrl('camp/studentlist?gradeId='.$value['GradeId'])?>">查看学生</a></td>
	</tr>
<?php endforeach; echo "</table>"; endif;?>


<br>
<?php if ($form_data->winterGrade):?>
	<span class="font1">冬令营目录</span>
	<table  class="tableClass"  width="100%"  border="0" cellpadding="0" cellspacing="1">
	<tr>
			<td width="100">年级</td>
			<td width="100">一期限定</td>
			<td width="120">一期已经注册人数</td>
			<td width="100">二期限定</td>
			<td width="120">二期已经注册人数</td>
			<td width="100">排序</td>
			<td>编辑</td>
	</tr>
<?php foreach ($form_data->winterGrade as $key=>$value):?>
	<tr>
		<td><?php echo $value['GradeName'];?></td>
		<td><?php echo $value['FirstNumber'];?></td>
		<td><?php echo $value['FirstRegistedNumber'];?></td>
		<td><?php echo $value['SecondNumber'];?></td>
		<td><?php echo $value['SecondRegisterdNumber'];?></td>
		<td><?php echo $value['Sort'];?></td>
		<td><a href ="<?php echo siteUrl('camp/gradeedit?gradeId='.$value['GradeId'])?>">修改</a>
		<?php if($form_data->isHaveDelGrant):?>
		<a href ="<?php echo siteUrl('camp/gradedel?gradeId='.$value['GradeId'])?>"> 删除</a>
		<?php endif;?>
		<a href ="<?php echo siteUrl('camp/studentlist?gradeId='.$value['GradeId'])?>">查看学生</a></td>
	</tr>
<?php endforeach; echo "</table>"; endif;?>